package net.tv90.auth.service;

import jakarta.servlet.http.HttpServletRequest;
import net.tv90.auth.model.dto.UserLoginByEmailDTO;
import net.tv90.auth.model.dto.UserLoginByUsernameDTO;
import net.tv90.auth.model.vo.UserInfoVO;
import net.tv90.auth.model.vo.UserLoginVO;

public interface LoginService {
    UserLoginVO loginByUsername(UserLoginByUsernameDTO dto, HttpServletRequest request);

    UserLoginVO loginByEmail(UserLoginByEmailDTO dto, HttpServletRequest request);

    void logout(String username);

    UserInfoVO getUserInfo(String username);
}
